package com.jqk.apipassener.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author:jiangqikun
 * @Date:2022/3/11 19:07
 **/
@FeignClient(name = "service-provider",fallbackFactory = ProviderFallBackFactory.class)
public interface ProviderFeign {

    @GetMapping(value = "/send-message")
     String sendMessage();

    @GetMapping(value="/test-hystrix")
     String testHystrix();

    @GetMapping("test-time")
     String testTime();
}
